import { createApp } from 'vue'
import App from './App.vue'
import router, { setupRouter } from "./router";
import { setupElementUiPlus } from "./element-ui-plus";
import { setupStore } from "./store";

import './router/guard'

(async () => {
  const app = createApp(App);

  setupRouter(app)

  setupElementUiPlus(app)

  setupStore(app)

  await router.isReady();

  app.mount('#app')
})()
